package com.supcalls.scheduled_task.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class Test {

    @Autowired
    private RedisTemplate redisTemplate;

    @GetMapping("/index")
    public String test(){
        redisTemplate.boundValueOps("StringKey").set("StringValue");
        return "success";
    }
}
